import { enLineType } from "../help/enumHelper";
import { DPoint } from "./DPoint";
import type { ILine } from "./ILine";

export class DLine implements ILine {

  startPoint: DPoint;
  endPoint: DPoint;
  midPoint: DPoint;
  centerPoint: DPoint;
  lineType: enLineType;
  arcDirect: number;
  arcHeight: number;
  r: number;
  path: string = "";

  constructor() {
    this.startPoint = new DPoint(0, 0);
    this.endPoint = new DPoint(0, 0);
    this.midPoint = new DPoint(0, 0);
    this.centerPoint = new DPoint(0, 0);
    this.lineType = enLineType.Line;
    this.arcDirect = 0;
    this.arcHeight = 0;
    this.r = 0;
  }
}

export { enLineType };

